#ifndef particle_h_
#define particle_h_

#include "SDL/SDL.h"
#include "SDL/SDL_opengl.h"
#include "globaldef.h"

class particle
{
  public:
    particle(); //Please don't ever call this
    particle(GLuint ttex, float dd = 5,float tt = 0,float xx = 0, float yy = 0, float ww = 32, float hh = 32, float aa = 0, float dtt = 0, float dxx = 0, float dyy = 0, float dww = 0, float dhh = 0, float daa = 0, float rr = 1, float gg = 1, float bb = 1, float drr = 0, float dgg = 0, float dbb = 0);
    ~particle(); //Destructify me captain

    //graphics
    virtual void draw(ptrContainer & dcontainer);

    void update(double prog);
    
    GLuint tex;

    float a; //angle
    float x;
    float y;
    float w; //width
    float h; //height
    float d; //Duration
    float t; //Transparency
    float r;
    float g;
    float b;
    

    float da;
    float dx;
    float dy;
    float dw;
    float dh;
    float dt;
    float dr;
    float dg;
    float db;

  private:
    
};

#endif
